<?php
    class MvcController{
        //成员变量
        public $view;
        public $model;
        
        public function __construct() {
            //加载视图核心文件
            require APP_PATH . 'core/View.class.php';
            require APP_PATH . 'core/Model.class.php';
            $this -> view = new View(); 
            $this -> model = new Model(); 
        }
                
        //成功返回
        public function success($msg="",$url=""){
            echo $msg;
        }
        
        //报错返回
        public function error($msg="",$url=""){
            echo $msg;
            exit;
        }
    }
